﻿#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;

class Test {
public:
	Test(int a) {
		m_a = a; 
	}
	int getA() {
		return m_a;
	}
	static void print() {
		cout << "this is class test!" << endl; 
	}
private:
	int m_a;  // 4字节 
};

Test a(10); 

int b = a.getA(); 

// 以上代码会被处理为：
/*
struct Test {
	int m_a;
}
void Test_initialize(Test *pThis, int a) {
	pThis->m_a = a;
}
int Test_getA(Test * pThis) {
	return pThis->m_a;
}
void Test_print() {
	cout << "this is class test!" << endl; 
}
Test a;
Test_initialize(&a, 10);
int b = Test_getA(&a);
*/

int main()
{



	system("pause");
	return EXIT_SUCCESS;
}